package com.yesep.learn.design.behavioral.state;

public class YellowLightState implements ILightState {
    @Override
    public void handle(LightContext lightContext) {
        System.out.println("Yellow light is on.");
        lightContext.change(LightState.RED);
    }
}